<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri = "http://java.sun.com/jstl/core_rt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>	
	<form action="view/user/add.jsp">
		<input type = "submit" value = "注册信息" >
	</form>
	
	<table border = "1px">
		<tr>
			<td>用户ID</td>
			<td>用户账号</td>
			<td>用户密码</td>
			<td>用户姓名</td>
			<td>用户性别</td>
			<td>用户类别</td>
			<td>登记时间</td>
			<td>用户操作</td>
		</tr>
		<c:forEach items="${users }" var = "user">
		<tr>
			<td>${user.u_id }</td>
			<td>${user.u_name }</td>
			<td>${user.u_pass }</td>
			<td>${user.u_realname }</td>
			<td>${user.u_sex }</td>
			<td>${user.role_id }</td>
			<td>${user.u_create_time}</td>
			<td><a href = "${pageContext.request.contextPath }/UserDelServlet?u_id=${user.u_id }">删除</a></td>
		</tr>
		</c:forEach>
	
	</table>

</body>
</html>